/**
 * @author gao
 * @date 2025/6/22 23:04
 */

public class Test {
    public static void main(String[] args) {
        int[] array = new int[]{4, 2, 6, 1, 3, 5, 15, 7, 16, 14};
        AVLTree avlTree = new AVLTree();
        for (int i = 0; i < array.length; i++) {
            avlTree.insert(array[i]);
        }
        System.out.println(avlTree.isBalanced(avlTree.root));
    }
}